package com.e3.core.base;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

import org.hibernate.annotations.GenericGenerator;

@MappedSuperclass
public class SuperEntity implements Serializable {

	private static final long serialVersionUID = 6172022175548530650L;
	
	private long id;
	
	private Long createUserId;
	private Long createTime;
	private Long modifyUserId;
	private Long modifyTime;

	@Id
	@GeneratedValue(generator = "entityPKGenerator")       
	@GenericGenerator(name = "entityPKGenerator", strategy = "com.e3.core.base.EntityPKGenerator") 
	@Column(name="ID")
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	@Column(name="CREATE_USER_ID")
	public Long getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(Long createUserId) {
		this.createUserId = createUserId;
	}

	@Column(name="CREATE_TIME")
	public Long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}
	
	@Column(name="MODIFY_USER_ID")
	public Long getModifyUserId() {
		return modifyUserId;
	}

	public void setModifyUserId(Long modifyUserId) {
		this.modifyUserId = modifyUserId;
	}

	@Column(name="MODIFY_TIME")
	public Long getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Long modifyTime) {
		this.modifyTime = modifyTime;
	}

}
